<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			//
			//var regmail=/^\w+@(\w+\.)+\w+$/;
			/**var regmail=/^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/;
			var email=prompt("电子邮件","qq@qq.com");
			alert(regmail.test(email));**/
			var regchina=/^[\u4e00-\u9fa5]{1,4}$/;
			alert(regchina.test("刘c"));
			
			var regurl=/^((http|https):\/\/)?(\w+\.)+(\w+)$/;
			var url="https://www.alipay.com";
			alert(url+":"+regurl.test(url));
			url="https://alipay.com";
			alert(url+":"+regurl.test(url));
			url="http://www.bdqn.cn";
			alert(url+":"+regurl.test(url));
			
			var regidcard=/^\d{17}[\dXx]$/;
			var regBendi=/^(\d{3,4}-?)?[2-9]\d{6,7}$/;
		</script>
	</head>
	<body>
	</body>
</html>
